<%--
  Created by IntelliJ IDEA.
  User: lenovo
  Date: 2016/5/18
  Time: 17:04
  To change this template use File | Settings | File Templates.
--%>

<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path;
%>

<html>
  <head>
      <title>地方平台oauth对接demo</title>
  </head>
  <body>
  <div style="margin: 0 auto; width: 800px;">
      <h1>以下是两种oauth对接方式：</h1>
      <div style="border:1px solid #191a1b; width: 800px; margin-top: 10px">
          <h1>1.点击下面图片，用大仪平台账号登录。</h1>
          <div style="margin-left: 100px; margin-top: 40px; margin-bottom: 10px">
              <a href="javascript:window.open('<%=basePath%>/oauth/Authorize')" >
                  <img src="images/logo.jpg">
              </a>
          </div>
      </div>
      <div style="width: 800px; height: 2px; background-color: black; margin-top: 10px;"></div>
      <div style="border:1px solid #191a1b; width: 800px; height: 260px; margin-top: 10px">
          <h1>2.按照下面步骤模拟预约过程</h1>
          <h2>1)点击下面链接，登录国家测试平台</h2>
          <a href="javascript:window.open('http://218.249.73.248:8080');">大仪平台首页</a>
          <h2>2)点击下面链接，模拟用户预约仪器</h2>
          <a href="javascript:window.open('<%=basePath%>/oauth/Authorize')">预约仪器</a>
      </div>
  </div>
  </body>
</html>
